<!DOCTYPE HTML>
<html>
<head>
<include file="Public:head" />

<script src="__PUBLIC__/Static/js/uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="__PUBLIC__/Static/js/uploadify/uploadify.css" />


<script type="text/javascript">
	var jumpurl = "{:U('space/photos/album',array('d'=>'info','id'=>$strAlbum['albumid'],'t'=>$smalltime))}";
	<php> $timestamp = time();</php>
	$(function() {
		$('#file_upload').uploadify({
			'formData'     : {
				'timestamp' : '<php> echo $timestamp;</php>',
				'token'     : '<php> echo md5('unique_salt' . $timestamp);</php>',
				'albumid'    : '{$strAlbum["albumid"]}',
				'userid'     : '{$visitor["userid"]}'
			},
			'swf'      : siteUrl + 'Public/Static/js/uploadify/uploadify.swf',
			'uploader' : 'index.php?app=space&c=photos&a=album&d=ajaxupload',
			'queueID': 'fileQueue',			
			'auto': true,
			'multi': true,
			'buttonText': '开始上传',	
			'fileTypeDesc':'jpg,gif,png图片格式',
			'fileTypeExts':'*.jpg;*.gif;*.png',
			'uploadLimit':20,
			'onQueueComplete' : function(queueData) {
				//alert(queueData.uploadsSuccessful + ' 个文件传输成功.');
				window.location = jumpurl;
			}		
		});
	});
</script>
</head>

<body>
<include file="Public:header" />

<div class="midder">
<div class="mc">
	<h1>{$seo.title}</h1>
	<div class="cleft">
    
    	<if condition="$type neq 'n'">
            <div class="uploadtype">
                <div id="fileQueue"></div><br>
                <input id="file_upload" name="file_upload" type="file" multiple>
        <p style="padding:10px 0;">上传文件只支持：jpg，gif，png格式；上传最大支持1M的图片<br>
        <div class="tips"> 提示：每次最多可以批量上传 <b style="color:red">20</b> 张照片，按着 "ctrl" 键可以一次选择多张照片</div>
        </p>
                       
         <p><br>无法上传？<a href="{:U('space/photos/album',array('d'=>'upload','type'=>'n','id'=>$strAlbum[albumid]))}">使用普通方式上传照片&gt;</a></p>
       		</div>
        <else/> 
            <div class="uploadtype">
                <p class="pl">你可以上传JPG，JPEG， GIF，PNG，每个文件大小可以到1M。</p><br>
                <form enctype="multipart/form-data" action="{:U('space/photos/album',array('d'=>'upload','id'=>$strAlbum[albumid],'t'=>$smalltime))}" method="post" name="album_upload">
                <span class="pl">选择图片 </span><input type="file" name="picfile[]"><br><br>
                <span class="pl">选择图片 </span><input type="file" name="picfile[]"><br><br>
                <span class="pl">选择图片 </span><input type="file" name="picfile[]"><br><br>
                <span class="pl">选择图片 </span><input type="file" name="picfile[]"><br><br>
                <span class="pl">选择图片 </span><input type="file" name="picfile[]"><br><br>
                <span class="bn-flat"><input type="submit" value="开始上传" name="upload"></span>
                </form>
                <p><br><a href="{:U('space/photos/album',array('d'=>'upload','id'=>$strAlbum[albumid]))}">使用批量上传方式上传照片&gt;</a></p>      
            </div>   	
    	</if>
        
    </div><!--//cleft-->
    <div class="cright">
        <div class="mod">
        所有相册空间的总容量为 5G。
        <br><br>
        <p class="pl2">&gt; <a href="{:U('space/photos/album',array('id'=>$strAlbum[albumid]))}">回相册"{$strAlbum[albumname]}"</a></p>
        </div>

        
    </div><!--//right-->
</div>
</div>

<include file="Public:footer" />
</body>
</html>